Doesn't make sense anymore now that gtk_widget_show_all is gone.
</child>
<child>
<object class="GtkInfoBar" id="infobar">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="hexpand">1</property>
<child internal-child="content_area">
<object class="GtkBox" id="content_area">
gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "edit-delete");
gtk_tool_item_set_tooltip_text (item, "Do not show at all");
gtk_tool_item_group_insert (GTK_TOOL_ITEM_GROUP (group), item, -1);
- gtk_widget_set_no_show_all (GTK_WIDGET (item), TRUE);
+ gtk_widget_hide (GTK_WIDGET (item));
item = gtk_tool_button_new (NULL, NULL);
gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (item), "view-fullscreen");
<object class="GtkInfoBar" id="infobar">
<property name="visible">0</property>
<property name="show-close-button">1</property>
- <property name="no-show-all">1</property>
<child internal-child="content_area">
<object class="GtkBox">
<child>
</child>
<child>
<object class="GtkStatusbar" id="statusbar">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
</object>
</child>
</object>
<child type="overlay">
<object class="GtkToolbar" id="totem_like_osd">
<property name="visible">0</property>
- <property name="no-show-all">1</property>
<property name="opacity">0.9</property>
<property name="margin">20</property>
<property name="valign">end</property>
gtk_widget_set_child_visible
gtk_widget_set_size_request
gtk_widget_thaw_child_notify
-gtk_widget_set_no_show_all
-gtk_widget_get_no_show_all
gtk_widget_list_mnemonic_labels
gtk_widget_add_mnemonic_label
gtk_widget_remove_mnemonic_label
button = gtk_button_new_with_label ("Quit");
gtk_accel_label_set_accel_widget (GTK_ACCEL_LABEL (widget), button);
- gtk_widget_set_no_show_all (button, TRUE);
+ gtk_widget_hide (button);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (box), widget);
page_info->page = page;
page_info->regular_title = gtk_label_new (NULL);
page_info->has_padding = TRUE;
- gtk_widget_set_no_show_all (page_info->regular_title, TRUE);
page_info->current_title = gtk_label_new (NULL);
- gtk_widget_set_no_show_all (page_info->current_title, TRUE);
gtk_label_set_xalign (GTK_LABEL (page_info->regular_title), 0.0);
gtk_label_set_xalign (GTK_LABEL (page_info->current_title), 0.0);
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (cc), &color);
gtk_widget_hide (GTK_WIDGET (cc->priv->editor));
-
- gtk_widget_set_no_show_all (cc->priv->palette, TRUE);
- gtk_widget_set_no_show_all (cc->priv->editor, TRUE);
+ gtk_widget_hide (GTK_WIDGET (cc->priv->palette));
cc->priv->size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
gtk_size_group_add_widget (cc->priv->size_group, cc->priv->palette);
g_warning ("Content added to the action area of a dialog using header bars");
gtk_widget_set_visible (priv->action_box, TRUE);
- gtk_widget_set_no_show_all (priv->action_box, FALSE);
}
static void
}
gtk_widget_set_visible (priv->action_box, !priv->use_header_bar);
- gtk_widget_set_no_show_all (priv->action_box, priv->use_header_bar);
}
static void
gtk_label_set_single_line_mode (GTK_LABEL (subtitle_label), TRUE);
gtk_label_set_ellipsize (GTK_LABEL (subtitle_label), PANGO_ELLIPSIZE_END);
gtk_box_pack_start (GTK_BOX (label_box), subtitle_label, FALSE, FALSE);
- gtk_widget_set_no_show_all (subtitle_label, TRUE);
gtk_widget_set_visible (subtitle_label, subtitle && subtitle[0]);
if (ret_title_label)
t = g_strsplit (tokens[i], ",", -1);
separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
- gtk_widget_set_no_show_all (separator, TRUE);
gtk_style_context_add_class (gtk_widget_get_style_context (separator), "titlebutton");
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, priv->spacing);
* widget = gtk_info_bar_new ();
* bar = GTK_INFO_BAR (bar);
*
- * gtk_widget_set_no_show_all (widget, TRUE);
* message_label = gtk_label_new ("");
* gtk_widget_show (message_label);
* content_area = gtk_info_bar_get_content_area (bar);
gtk_widget_init_template (widget);
- gtk_widget_set_no_show_all (priv->close_button, TRUE);
g_signal_connect (priv->close_button, "clicked",
G_CALLBACK (close_button_clicked_cb), info_bar);
}
gtk_widget_show (box);
gtk_widget_set_size_request (box, -1, 16);
label = gtk_label_new ("");
- gtk_widget_set_no_show_all (label, TRUE);
+ gtk_widget_hide (label);
gtk_widget_set_margin_top (label, 6);
gtk_widget_set_margin_bottom (label, 6);
gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
gtk_widget_set_halign (button->box, GTK_ALIGN_FILL);
gtk_widget_show (button->box);
button->image = gtk_image_new ();
- gtk_widget_set_no_show_all (button->image, TRUE);
+ gtk_widget_hide (button->image);
button->label = gtk_label_new ("");
- gtk_widget_set_no_show_all (button->label, TRUE);
+ gtk_widget_hide (button->label);
gtk_container_add (GTK_CONTAINER (button->box), button->image);
gtk_container_add (GTK_CONTAINER (button->box), button->label);
gtk_container_add (GTK_CONTAINER (button), button->box);
GINT_TO_POINTER (TRUE));
gtk_menu_shell_insert (GTK_MENU_SHELL (menu), priv->placeholder, 0);
- gtk_widget_set_no_show_all (priv->placeholder, TRUE);
gtk_widget_show (priv->placeholder);
/* (re)populate the menu */
g_signal_connect (priv->revealer, "notify::child-revealed",
G_CALLBACK (child_revealed_changed_cb), bar);
- gtk_widget_set_no_show_all (priv->close_button, TRUE);
g_signal_connect (priv->close_button, "clicked",
G_CALLBACK (close_button_clicked_cb), bar);
};
"stack", self->stack,
"spacing", 12,
"visible", FALSE,
- "no-show-all", TRUE,
NULL);
gtk_style_context_remove_class (gtk_widget_get_style_context (GTK_WIDGET (self->switcher)), GTK_STYLE_CLASS_LINKED);
self->show_all = gtk_button_new_with_mnemonic (_("_Show All"));
- gtk_widget_set_no_show_all (self->show_all, TRUE);
- gtk_widget_set_visible (self->show_all, FALSE);
+ gtk_widget_hide (self->show_all);
g_signal_connect_swapped (self->show_all, "clicked",
G_CALLBACK (gtk_shortcuts_section_show_all), self);
if (self->direction == GTK_TEXT_DIR_NONE ||
self->direction == gtk_widget_get_direction (GTK_WIDGET (self)))
{
- gtk_widget_set_visible (GTK_WIDGET (self), TRUE);
- gtk_widget_set_no_show_all (GTK_WIDGET (self), FALSE);
+ gtk_widget_show (GTK_WIDGET (self));
}
else
{
- gtk_widget_set_visible (GTK_WIDGET (self), FALSE);
- gtk_widget_set_no_show_all (GTK_WIDGET (self), TRUE);
+ gtk_widget_hide (GTK_WIDGET (self));
}
}
self->image = g_object_new (GTK_TYPE_IMAGE,
"visible", FALSE,
"valign", GTK_ALIGN_CENTER,
- "no-show-all", TRUE,
NULL);
gtk_container_add (GTK_CONTAINER (self->box), GTK_WIDGET (self->image));
self->accelerator = g_object_new (GTK_TYPE_SHORTCUT_LABEL,
"visible", TRUE,
"valign", GTK_ALIGN_CENTER,
- "no-show-all", TRUE,
NULL);
gtk_container_add (GTK_CONTAINER (self->box), GTK_WIDGET (self->accelerator));
self->subtitle = g_object_new (GTK_TYPE_LABEL,
"visible", FALSE,
- "no-show-all", TRUE,
"xalign", 0.0f,
NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (self->subtitle)),
priv = gtk_stack_sidebar_get_instance_private (sidebar);
sw = gtk_scrolled_window_new (NULL, NULL);
- gtk_widget_show (sw);
- gtk_widget_set_no_show_all (sw, TRUE);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
GTK_POLICY_NEVER,
GTK_POLICY_AUTOMATIC);
gtk_container_add (GTK_CONTAINER (sidebar), sw);
priv->list = GTK_LIST_BOX (gtk_list_box_new ());
- gtk_widget_show (GTK_WIDGET (priv->list));
gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (priv->list));
PROP_HAS_DEFAULT,
PROP_RECEIVES_DEFAULT,
PROP_EVENTS,
- PROP_NO_SHOW_ALL,
PROP_HAS_TOOLTIP,
PROP_TOOLTIP_MARKUP,
PROP_TOOLTIP_TEXT,
GDK_STRUCTURE_MASK,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
- widget_props[PROP_NO_SHOW_ALL] =
- g_param_spec_boolean ("no-show-all",
- P_("No show all"),
- P_("Whether gtk_widget_show_all() should not affect this widget"),
- FALSE,
- GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
-
/**
* GtkWidget:has-tooltip:
*
if (!_gtk_widget_get_realized (widget) && _gtk_widget_get_has_window (widget))
gtk_widget_set_events (widget, g_value_get_flags (value));
break;
- case PROP_NO_SHOW_ALL:
- gtk_widget_set_no_show_all (widget, g_value_get_boolean (value));
- break;
case PROP_HAS_TOOLTIP:
gtk_widget_real_set_has_tooltip (widget,
g_value_get_boolean (value), FALSE);
eventp = g_object_get_qdata (G_OBJECT (widget), quark_event_mask);
g_value_set_flags (value, GPOINTER_TO_INT (eventp));
break;
- case PROP_NO_SHOW_ALL:
- g_value_set_boolean (value, gtk_widget_get_no_show_all (widget));
- break;
case PROP_HAS_TOOLTIP:
g_value_set_boolean (value, gtk_widget_get_has_tooltip (widget));
break;
new_list, (GDestroyNotify) g_slist_free);
}
-/**
- * gtk_widget_get_no_show_all:
- * @widget: a #GtkWidget
- *
- * Returns the current value of the #GtkWidget:no-show-all property,
- * which determines whether calls to gtk_widget_show_all()
- * will affect this widget.
- *
- * Returns: the current value of the “no-show-all” property.
- *
- * Since: 2.4
- **/
-gboolean
-gtk_widget_get_no_show_all (GtkWidget *widget)
-{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
-
- return widget->priv->no_show_all;
-}
-
-/**
- * gtk_widget_set_no_show_all:
- * @widget: a #GtkWidget
- * @no_show_all: the new value for the “no-show-all” property
- *
- * Sets the #GtkWidget:no-show-all property, which determines whether
- * calls to gtk_widget_show_all() will affect this widget.
- *
- * This is mostly for use in constructing widget hierarchies with externally
- * controlled visibility.
- *
- * Since: 2.4
- **/
-void
-gtk_widget_set_no_show_all (GtkWidget *widget,
- gboolean no_show_all)
-{
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- no_show_all = (no_show_all != FALSE);
-
- if (widget->priv->no_show_all != no_show_all)
- {
- widget->priv->no_show_all = no_show_all;
-
- g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_NO_SHOW_ALL]);
- }
-}
-
-
static void
gtk_widget_real_set_has_tooltip (GtkWidget *widget,
gboolean has_tooltip,
GDK_AVAILABLE_IN_ALL
void gtk_widget_show_now (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
-void gtk_widget_set_no_show_all (GtkWidget *widget,
- gboolean no_show_all);
-GDK_AVAILABLE_IN_ALL
-gboolean gtk_widget_get_no_show_all (GtkWidget *widget);
-GDK_AVAILABLE_IN_ALL
void gtk_widget_map (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
void gtk_widget_unmap (GtkWidget *widget);
guint has_grab : 1;
guint shadowed : 1;
guint redraw_on_alloc : 1;
- guint no_show_all : 1;
guint child_visible : 1;
guint multidevice : 1;
guint has_shape_mask : 1;
<property name="show-close-button">1</property>
<child type="title">
<object class="GtkStackSwitcher" id="stack_switcher">
+ <property name="visible">0</property>
<property name="stack">stack</property>
- <property name="no-show-all">1</property>
</object>
</child>
</object>
<property name="spacing">8</property>
<child>
<object class="GtkLabel" id="version_label">
+ <property name="visible">0</property>
<property name="label">version 1.0</property>
<property name="justify">center</property>
<property name="selectable">1</property>
- <property name="no-show-all">1</property>
</object>
<packing>
<property name="fill">0</property>
</child>
<child>
<object class="GtkLabel" id="comments_label">
+ <property name="visible">0</property>
<property name="label">comments</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<property name="selectable">1</property>
- <property name="no-show-all">1</property>
<property name="max-width-chars">60</property>
</object>
<packing>
</child>
<child>
<object class="GtkLabel" id="website_label">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="label">http://website.com</property>
<property name="selectable">1</property>
<signal name="activate-link" handler="emit_activate_link" object="GtkAboutDialog" swapped="yes"/>
</child>
<child>
<object class="GtkLabel" id="copyright_label">
+ <property name="visible">0</property>
<property name="label">copyright</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<property name="selectable">1</property>
- <property name="no-show-all">1</property>
<property name="max-width-chars">60</property>
</object>
<packing>
</child>
<child>
<object class="GtkLabel" id="license_label">
+ <property name="visible">0</property>
<property name="label">license</property>
<property name="use-markup">1</property>
<property name="justify">center</property>
<property name="wrap">1</property>
<property name="selectable">1</property>
- <property name="no-show-all">1</property>
<property name="max-width-chars">60</property>
</object>
<packing>
</child>
<child>
<object class="GtkBox" id="credits_page">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<child>
</child>
<child>
<object class="GtkBox" id="license_page">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<child>
</child>
<child>
<object class="GtkBox" id="system_page">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<child>
</child>
<child type="overlay">
<object class="GtkBox" id="no_apps">
+ <property name="visible">0</property>
<property name="orientation">vertical</property>
- <property name="no-show-all">1</property>
<property name="halign">center</property>
<property name="valign">center</property>
<child>
<property name="margin">6</property>
<child>
<object class="GtkButton" id="apply">
+ <property name="visible">0</property>
<property name="label" translatable="yes">_Apply</property>
<property name="can-focus">1</property>
<property name="can-default">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
<property name="can-focus">1</property>
<property name="can-default">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
<property name="visible">1</property>
<property name="can-focus">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
</child>
<child>
<object class="GtkButton" id="last">
+ <property name="visible">0</property>
<property name="label" translatable="yes">_Finish</property>
<property name="can-focus">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
</child>
<child>
<object class="GtkButton" id="cancel">
+ <property name="visible">0</property>
<property name="label" translatable="yes">_Cancel</property>
<property name="visible">1</property>
<property name="can-focus">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
</child>
<child>
<object class="GtkButton" id="close">
+ <property name="visible">0</property>
<property name="label" translatable="yes">_Close</property>
<property name="can-focus">1</property>
<property name="can-default">1</property>
<property name="receives-default">1</property>
- <property name="no-show-all">1</property>
<property name="use-underline">1</property>
<style>
<class name="text-button"/>
</template>
<object class="GtkBox" id="a_popup">
<property name="visible">0</property>
- <property name="no-show-all">1</property>
<style>
<class name="popover"/>
<class name="osd"/>
</object>
<object class="GtkBox" id="h_popup">
<property name="visible">0</property>
- <property name="no-show-all">1</property>
<style>
<class name="popover"/>
<class name="osd"/>
</object>
<object class="GtkBox" id="sv_popup">
<property name="visible">0</property>
- <property name="no-show-all">1</property>
<style>
<class name="popover"/>
<class name="osd"/>
</child>
<child>
<object class="GtkBox" id="location_entry_box">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="spacing">6</property>
<property name="margin">6</property>
</object>
</child>
<child>
<object class="GtkBox" id="search_entry_box">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="spacing">6</property>
<property name="margin">6</property>
<child type="center">
<child>
<object class="GtkActionBar" id="extra_and_filters">
<property name="visible">0</property>
- <property name="no-show-all">1</property>
<child>
<object class="GtkBox" id="extra_align">
<property name="spacing">12</property>
<child>
<object class="GtkBox" id="font_size_box">
<property name="visible">1</property>
- <property name="no-show-all">1</property>
<child>
<object class="GtkSeparator" id="separator">
<property name="visible">1</property>
</child>
<child>
<object class="GtkButton" id="close_button">
+ <property name="visible">0</property>
<property name="can-focus">1</property>
<property name="relief">none</property>
<property name="margin">6</property>
</child>
<child>
<object class="GtkLabel" id="secondary_label">
- <property name="no-show-all">1</property>
+ <property name="visible">0</property>
<property name="margin-bottom">2</property>
<property name="halign">center</property>
<property name="valign">start</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkButton" id="close_button">
- <property name="visible">1</property>
+ <property name="visible">0</property>
<property name="can-focus">1</property>
<property name="receives-default">1</property>
<property name="relief">none</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="margin-start">4px</property>
- <property name="no-show-all">1</property>
<property name="icon-name">media-eject-symbolic</property>
<style>
<class name="sidebar-button"/>
<child>
<object class="GtkButton" id="headerbutton">
<property name="visible">True</property>
- <property name="no-show-all">True</property>
<style>
<class name="image-button"/>
</style>
<packing>
<property name="name">title</property>
</packing>
- </child>
+ </child>
<child>
<object class="GtkMenuButton">
<property name="visible">True</property>
<child>
<object class="GtkButton" id="select-button">
<property name="visible">True</property>
- <property name="no-show-all">True</property>
<style>
<class name="image-button"/>
</style>
</child>
<child>
<object class="GtkButton" id="cancel-button">
- <property name="no-show-all">True</property>
+ <property name="visible">0</property>
<property name="label">Cancel</property>
</object>
<packing>
<property name="visible">True</property>
<property name="selection-mode">none</property>
<property name="activate-on-single-click">True</property>
- </object>
+ </object>
</child>
</object>
</child>
gtk_container_add (GTK_CONTAINER (popup), spinner);
gtk_overlay_add_overlay (GTK_OVERLAY (overlay), popup);
- gtk_widget_set_no_show_all (popup, TRUE);
+ gtk_widget_hide (popup);
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);